package org.common.utils.net.netty.http.listener.entity;

import org.common.utils.net.netty.http.core.HttpRequest;
import org.common.utils.net.netty.http.listener.HttpListener;

/**
 * 功能调用前监听器
 * @author zhouzhibing
 * @date 2025/11/24 14:19
 */
public class HandlerRequestAfterListenerInfo implements ListenerInfo {

    /**
     * 请求
     */
    private HttpRequest request;
    /**
     * 结果
     */
    private Object result;

    public HandlerRequestAfterListenerInfo(HttpRequest request, Object result) {
        this.request = request;
        this.result = result;
    }

    @Override
    public HttpListener.Key getKey() {
        return HttpListener.Key.HANDLER_REQUEST_AFTER;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public Object getResult() {
        return result;
    }
}
